# -*- coding: utf-8 -*-
import os


# 基础路径
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
# 调试
DEBUG = False
# 日志级别
LOGGER_LEVEL = None
# 域名
DOMAIN = 'http://127.0.0.1:8395'
# 前端验证邮箱域名
VERIFY_EMAIL_DOMAIN = 'http://127.0.0.1:5501/verify_email.html'
# 前端重置密码域名
RESET_PASSWORD_DOMAIN = 'http://127.0.0.1:5501/reset_password.html'
# 数据表前缀
TABLE_NAME_PREFIX = "ko_"

# 开启登录邮箱激活状态验证
OPEN_LOGIN_EMAIL = False

MYSQL = {
    'host': '127.0.0.1',
    'port': 3306,
    'user': 'root',
    'password': '123456',
    'db': 'kongming'
}


REDIS = {
    'host': '127.0.0.1',
    'port': 6379,
}

MAIL = {
    'name': 'system@mail.apidata.cc',
    'password': '',
    'host': 'smtpdm.aliyun.com',
    'port': 465,
    'from': 'apidata.cc <system@mail.apidata.cc>',
}
